package com.yuerlive.rainbow.api;

import com.yuerlive.rainbow.API;
import com.yuerlive.rainbow.entity.Anchor;
import com.yuerlive.rainbow.entity.BaseData;
import com.yuerlive.rainbow.entity.User;
import com.yuerlive.rainbow.entity.UserInfo;

import java.util.Map;


import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by xiaoyi on 2017/5/17.
 */

public interface UserService {
    @FormUrlEncoded
    @POST(API.LOGIN)
    Observable<BaseData<User>> login(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(API.USERINFO)
    Observable<BaseData<UserInfo>> getUserInfo(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST(API.FEEDBACK)
    Observable<BaseData> commitFeedback(@FieldMap Map<String, String> params);
}
